package com.zhanghe.study.spring4;

import com.zhanghe.study.spring4.annotation.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zh
 * @date 2023/4/18 15:17
 */
public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-all-lifecycle.xml");
        System.out.println("---容器初始化成功");
        Person person = applicationContext.getBean("person", Person.class);
        applicationContext.close();
    }
}
